Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / GcGraphicsExt Class / DrawListBox Method / DrawListBox(GcGraphics,RectangleF,IList<ChoiceFieldItem>,Int32[],Int32,TextFormat,Color,Border,Boolean) Method
The graphics to draw on.
The control bounds.
The control items.
The list of selected indexes.
The index of the top visible item.
The text format to use.
The background color.
The border definition.
Indicates whether to draw the border in red, ignoring the color specified in border.

In This Topic
    DrawListBox(GcGraphics,RectangleF,IList<ChoiceFieldItem>,Int32[],Int32,TextFormat,Color,Border,Boolean) Method
    In This Topic
    Draws a list box.
    Syntax
    'Declaration
     
    Public Overloads Shared Sub DrawListBox( _
       ByVal g As GcGraphics, _
       ByVal bounds As System.Drawing.RectangleF, _
       ByVal items As System.Collections.Generic.IList(Of ChoiceFieldItem), _
       ByVal si() As System.Integer, _
       ByVal topIndex As System.Integer, _
       ByVal textFormat As TextFormat, _
       ByVal backColor As System.Drawing.Color, _
       ByVal border As Border, _
       ByVal required As System.Boolean _
    ) 
    public static void DrawListBox( 
       GcGraphics g,
       System.Drawing.RectangleF bounds,
       System.Collections.Generic.IList<ChoiceFieldItem> items,
       System.int[] si,
       System.int topIndex,
       TextFormat textFormat,
       System.Drawing.Color backColor,
       Border border,
       System.bool required
    )

    Parameters

    g
    The graphics to draw on.
    bounds
    The control bounds.
    items
    The control items.
    si
    The list of selected indexes.
    topIndex
    The index of the top visible item.
    textFormat
    The text format to use.
    backColor
    The background color.
    border
    The border definition.
    required
    Indicates whether to draw the border in red, ignoring the color specified in border.
    See Also